﻿@model YuYuKiCms.Model.PageVm

@section css
{
    <link rel="stylesheet" href="~/Content/bootstrap.min.css" />
    <link rel="stylesheet" href="~/Scripts/NestedTable.css" />
    @Styles.Render("~/Content/Css")
}

@section scripts
{
    @Scripts.Render("~/bundles/jqueryval")
    <script type="text/javascript" src="~/Scripts/jquery.nestable.js"></script>
    <script type="text/javascript" src="~/Scripts/bootstrap.js"></script>
    <script type="text/javascript" src="~/Scripts/bootstrap-datepicker.js"></script>
    <script type="text/javascript" src="~/Scripts/AdvanceMenu/Scripts/menu.js"></script>
    <script>
        var urlCreateMenu = '@Url.Action("Create")';
        var urlSaveMenu = '@Url.Action("Save")';
        var urlEditMenu = '@Url.Action("Edit")';
        var urlDeleteMenu = '@Url.Action("Delete")';

        $(function () {
            $(".dd").nestable({
                'expandBtnHTML': "",
                'collapseBtnHTML': ""
            });
            //$("#PublishDate").datepicker();
            //$("#ExpireDate").datepicker();
        });

        //$("#Title").bind("blur", function () {
        //    $("#UrlTitle").val(this.value);
        //});
    </script>
}

<h2>@ViewRes.Page.Page_manager</h2>

<section>
    <a class="art-button" href="@Url.Action("Create")">Create new menu</a>
    <a id="save_menu" class="art-button" href="#" onclick="saveMenu()" style="display:none;">Save menu</a>

    <div id="menu" class="dd">
        <ol class="dd-list">
            @ViewBag.menu
        </ol>
    </div>
</section>

@*<div id="PageCreation" title="Basic dialog" style="display: none;">
    @Html.Partial("PageCreation")
</div>*@
